package org.finesys.common.disruptor.event.handler;

import org.slf4j.LoggerFactory;

/**
 * 记录日志
 */
public class LoggerThreadFactoryHandler implements Thread.UncaughtExceptionHandler {

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        LoggerFactory.getLogger(t.getClass().getName()).error(e.getMessage(), e);
    }
}
